{% extends 'base.html' %}

{% block container %}
<div class="top-pad">
    <form method="POST" action="{{ url_for('catalog.update_product', id=product.id) }} " role="form" enctype="multipart/form-data">
        <div class="form-group">{{ form.name.label }}：{{ form.name() }}</div>
        <div class="form-group">{{ form.price.label }}：{{ form.price() }}</div>
        <div class="form-group">{{ form.category.label }}：{{ form.category() }}</div>
        <div class="formgroup">{{ form.image.label }}：{{ form.image(style='display:inline;') }}</div>
        <button type="submit" class="btn btn-default">Submit</button>
    </form>
</div>
{% endblock %}
